###############################################
# Order of the Sacred Magdalene
# Magdalene Feudal Government
###############################################

feudal_governments = {

	ggsm_magdalene_feudal_government = {

		#######################################
		# HOLDINGS
		#######################################

		preferred_holdings = {
			CASTLE
		}

		allowed_holdings = {
			CASTLE
			TEMPLE
			FORT
			HOSPITAL
		}

		# Preserve normal feudal handling of
		# same-culture tribal holdings.
		allowed_holdings_culture = {
			TRIBAL
		}


		#######################################
		# GOVERNMENT ELIGIBILITY
		#######################################

		potential = {
			is_feudal = yes
			is_patrician = no
			mercenary = no
			holy_order = no

			is_female = yes
			religion = catholic

			society_member_of = ggsm_order_sacred_magdalene
		}


		#######################################
		# FEUDAL BEHAVIOR
		#######################################

		color = { 91 133 207 }

		dukes_called_kings = yes
		barons_need_dynasty = yes

		can_build_holdings = yes
		can_build_forts = yes
		can_build_hospitals = yes
		can_build_castle = yes
		can_build_city = yes
		can_build_temple = yes
		can_build_tribal = no

		can_demand_religious_conversion = yes
		can_inherit = yes
		allows_matrilineal_marriage = yes


		#######################################
		# VASSAL HANDLING
		#######################################

		free_revoke_on_governments_religion = {
			tribal_government
			ggsm_magdalene_tribal_government
		}

		ignore_in_vassal_limit_calculation = {
			tribal_government
			ggsm_magdalene_tribal_government
		}
	}
}

###############################################
# Order of the Sacred Magdalene
# Magdalene Tribal Government
###############################################

tribal_governments = {

	ggsm_magdalene_tribal_government = {

		#######################################
		# HOLDINGS
		#######################################

		preferred_holdings = {
			TRIBAL
		}

		allowed_holdings = {
			TRIBAL
			TEMPLE
			FORT
			HOSPITAL
		}


		#######################################
		# GOVERNMENT ELIGIBILITY
		#######################################

		potential = {
			is_tribal = yes
			is_patrician = no
			mercenary = no
			holy_order = no

			is_female = yes
			religion = catholic

			society_member_of = ggsm_order_sacred_magdalene
		}


		#######################################
		# TRIBAL APPEARANCE
		#######################################

		frame_suffix = "_tribal"

		color = { 118 82 55 }


		#######################################
		# TRIBAL BEHAVIOR
		#######################################

		uses_prestige_for_law_change = yes

		can_build_holdings = yes
		can_build_forts = yes
		can_build_hospitals = yes
		can_build_castle = yes
		can_build_city = yes
		can_build_temple = yes
		can_build_tribal = yes

		can_demand_religious_conversion = yes
		can_inherit = yes
		allows_matrilineal_marriage = yes

		barons_need_dynasty = yes
	}
}